<cfcomponent output="false" displayName="Builds" hint="Handles DAO for builds.">

	
	<cffunction name="init" returntype="builds" access="public" output="false">
		<cfreturn this />
	</cffunction>
	
	<cffunction name="getBuilds" access="public" returntype="query" output="false">
		<cfquery name="qryBuilds" datasource="#application.dsn#">

		</cfquery>
		
		<cfreturn qryBuilds>
	</cffunction>
	
	<cffunction name="getLatestBuild" access="public" returntype="query" output="false">
		<cfargument name="projectID" required="true" hint="ID of the project to get the latest build info.">
		
		<cfquery name="qryLatestBuild" datasource="#application.dsn#">
			SELECT 	Max(builddate) AS builddate
			FROM	builds
			WHERE	projectid = #arguments.projectID#
		</cfquery>
		<cfreturn qryLatestBuild>
	</cffunction>
	
	<cffunction name="buildProject" access="public" returntype="string" output="false"
				 hint="Calls Ant and passes the build file as an argument to create the build.">
				
		<> 
	</cffunction>
	
</cfcomponent>